package com.zaoke.web.bo.order;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class Order {
	
	public static final int STATE_UNPAID = 0;
	
	public static final int STATE_PAID = 1;
	
	public static final int STATE_TOKEN = 2;
	
	public static final int STATE_PAID_EXPIRE = 3;
	
	public static final int STATE_UNPAID_EXPIRE = 4;
	
	public static final int STATE_CANCEL = 5;

	private Long orderid;
	
	private Long userid;
	
	private String username;
	
	private Long zoneid;
	
	private Double price;
	
	private Integer payway;
	
	private Date ordertime;
	
	private Date booktime;
	
	private Date consumetime;
	
	private Integer state;
	
	private List<OrderFood> orderFood;
	
	private String url;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getOrderid() {
		return orderid;
	}

	public void setOrderid(Long orderid) {
		this.orderid = orderid;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Long getZoneid() {
		return zoneid;
	}

	public void setZoneid(Long zoneid) {
		this.zoneid = zoneid;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getPayway() {
		return payway;
	}

	public void setPayway(Integer payway) {
		this.payway = payway;
	}

	public Date getOrdertime() {
		return ordertime;
	}

	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	public Date getBooktime() {
		return booktime;
	}

	public void setBooktime(Date booktime) {
		this.booktime = booktime;
	}

	public Date getConsumetime() {
		return consumetime;
	}

	public void setConsumetime(Date consumetime) {
		this.consumetime = consumetime;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
	}

	public void setOrderFood(List<OrderFood> tmp) {
		this.orderFood = tmp;
	}

	public List<OrderFood> getOrderFood() {
		return orderFood;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}	
}
